import Layout from '../../views/layout/Layout'

export const levelRouter = {
  name: 'service',
  path: '/service',
  redirect: '/service/index',
  component: Layout,
  equType: 'qzj',
  meta: { title: '云服务总览', icon: 'tab', roles: ['system', 'admin'] },
  children: [
    {
      path: 'governmentPage',
      name: 'governmentPage',
      component: () => import('@/views/modules/service/governmentPage/index'),
      meta: { title: '政府部门云服务', icon: '数据看板', roles: ['system', 'admin'] }
    },
    {
      path: 'usingPage',
      name: 'usingPage',
      component: () => import('@/views/modules/service/usingPage/index'),
      meta: { title: '使用单位云服务', icon: '数据看板', roles: ['system', 'admin'] }
    },
    {
      path: 'checkPage',
      name: 'checkPage',
      component: () => import('@/views/modules/service/checkPage/index'),
      meta: { title: '检验机构云服务', icon: '数据看板', roles: ['system', 'admin'] }
    },
    {
      path: 'productionPage',
      name: 'productionPage',
      component: () => import('@/views/modules/service/productionPage/index'),
      meta: { title: '制造企业云服务', icon: '数据看板', roles: ['system', 'admin'] }
    }
  ]
}

export default [
  {
    name: 'service',
    path: '/service',
    redirect: '/service/index',
    component: Layout,
    equType: 'qzj',
    meta: { title: '云服务总览', icon: 'tab', roles: ['system', 'admin'] },
    children: [
      {
        path: 'check',
        name: 'check',
        component: () => import('@/views/modules/service/check/index'),
        meta: { title: '云服检验', icon: '数据看板', roles: ['system', 'admin'] }
      },
    ]
  },
  {
    name: 'service',
    path: '/service',
    redirect: '/service/index',
    component: Layout,
    equType: 'qzj',
    meta: { title: '云服务总览', icon: 'tab', roles: ['system', 'admin'] },
    children: [
      {
        path: 'user',
        name: 'user',
        component: () => import('@/views/modules/service/user/index'),
        meta: { title: '云服用户', icon: '数据看板', roles: ['system', 'admin'] }
      },
    ]
  },
  {
    name: 'service',
    path: '/service',
    redirect: '/service/index',
    component: Layout,
    equType: 'qzj',
    meta: { title: '云服务总览', icon: 'tab', roles: ['system', 'admin'] },
    children: [
      {
        path: 'make',
        name: 'make',
        component: () => import('@/views/modules/service/make/index'),
        meta: { title: '云服制造', icon: '数据看板', roles: ['system', 'admin'] }
      }
    ]
  },
  {
    name: 'service',
    path: '/service',
    redirect: '/service/index',
    component: Layout,
    equType: 'qzj',
    meta: { title: '云服务总览', icon: 'tab', roles: ['system', 'admin'] },
    children: [
      {
        path: 'regulator',
        name: 'regulator',
        component: () => import('@/views/modules/service/regulator/index'),
        meta: { title: '云服监管', icon: '数据看板', roles: ['system', 'admin'] }
      },
    ]
  },
  // {
  //   name: 'test',
  //   path: '/test',
  //   redirect: '/test/index',
  //   component: Layout,
  //   equType: 'qzj',
  //   meta: { title: '测试页面', icon: 'tab', roles: ['system', 'admin'] },
  //   children: [
  //     {
  //       path: 'index',
  //       name: 'index',
  //       // component: () => import('@/views/modules/prediction/index'),
  //       component: () => import('@/views/modules/monitor/indexPage/index'),
  //       meta: { title: '测试页面', icon: '数据看板', roles: ['system', 'admin'] }
  //     },
  //   ]
  // },
]
